package com.example.demo.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @Description websocket 配置类
 * @Date 2022/5/20 10:28
 * @Author bestwishes0203
 **/


@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverendpointExporter() {
        return new ServerEndpointExporter();
    }
}
